<?php


namespace App\Repositories;


use App\Models\Areas as Model;
use LTools\Repositories\RepositoryAbstract;

class Areas extends RepositoryAbstract
{
    /**
     * Areas constructor.
     * @param Model $model
     * @author luffyzhao@vip.126.com
     */
    public function __construct(Model $model)
    {
        $this->model = $model;
    }

    /**
     * @param array $attributes
     * @return mixed
     * @author luffyzhao@vip.126.com
     */
    public function all(array $attributes){
        return $this->model->where($attributes)->get();
    }
}